<div>
    <table style="width: 99%;">
        <tbody>
            <tr>
                <td width="80px" valign="top">Gallery</td>
                <td align="left"><input class="text" id="published" name="published"  style="width:200px" type="text" value="<?php if ($this->has_data('published')) echo date("Y-m-d H:i:s", $this->data['published']);?>" /></td>
                <td width="80px" valign="top">Range</td>
                <td align="left"><input class="text" id="expired" name="expired" type="text" style="width:200px" value="<?php $this->write_date('expired');?>" /></td>
            </tr>
        </tbody>
    </table>
</div>
<div>Content</div>
<div><textarea id="content" name="content"><?php $this->write('content');?></textarea></div>